package com.jymj.enumEntity.zjd;

/**
 * Created by ljj on 2018/9/10.
 */
public enum ApplyFileEnum {
    one("翻建承诺书", 1),
    two("申请表", 2),   //测绘图
    three("身份证", 3),
    four("户口本", 4),
    nine("房屋照片", 5),
    five("现场公示", 6),
    six("签字意见表", 7),
    seven("通过申请表", 8),
    ten("驳回申请表", 9),
    tey("验收现场照片", 10),
    y1("验收资料", 11),
    y2("确权登记", 12),
    y3("测绘位置", 13),
    y4("分户证明", 14),
    y5("权属证明", 15),
    ;
    // 成员变量
    private String name;
    private int index;
    // 构造方法
    private ApplyFileEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }
    // 普通方法
    public static String getName(int index) {
        for (ApplyFileEnum s : ApplyFileEnum.values()) {
            if (s.getIndex()==index) {
                return s.name;
            }
        }
        return null;
    }
    // get set方法
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getIndex() {
        return index;
    }
    public void setIndex(int index) {
        this.index = index;
    }
}
